package com.zzy.controller;

import com.zzy.domain.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/order")
public class OrderController {

    // 响应托底数据的方法
    public User getUserByIdFallback(Long id){
        return new User(-1L, "触发熔断", "当前服务不可用，请稍后重试！");
    }

}
